package com.example.project_01.service;

import com.example.project_01.commons.Result;
import com.example.project_01.dto.DrugDTO;
import com.example.project_01.model.DrugModel;
import com.github.pagehelper.PageInfo;

public interface DrugService {

    ////获取所有药品信息并分页，drugName不为空则模糊查询
    PageInfo<DrugModel> getDrugWithPage(Integer pn, Integer size, String drugName);

    //添加药品信息
    Result addDrug(DrugDTO drugDTO);

    //根据药品id删除药品信息
    Result deleteDrug(Integer drugId);

    //根据id更新药店数据
    Result updateDrug(DrugDTO drugDTO);

}
